package com.hundsun.cprs.yyt.service.dilivery.service.impl;

import com.hundsun.cprs.yyt.common.base.BaseService;
import com.hundsun.cprs.yyt.service.dilivery.dao.DeliveryCompanyDao;
import com.hundsun.cprs.yyt.service.dilivery.domain.DeliveryCompany;
import com.hundsun.cprs.yyt.service.dilivery.service.DeliveryCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeliveryCompanyServiceImpl extends BaseService implements DeliveryCompanyService {

    @Autowired
    private DeliveryCompanyDao deliveryCompanyDao;

    @Override
    public List<DeliveryCompany> queryCompanyList() {
        return deliveryCompanyDao.queryCompanyList();
    }

    @Override
    public DeliveryCompany selectCompanyByCode(String companyCode) {
        return deliveryCompanyDao.selectCompanyByCode(companyCode);
    }
}
